﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using KVB.Common;
using Customer_Profile.eCard.DBDao;

namespace Customer_Profile.eCard.Agent
{
    public partial class CardStockList : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            bindcardStock();
        }

        private void bindcardStock()
        {
            try
            {
                string card_no = TextBox1.Text.Trim();
                string status = dropStatus.SelectedItem.Value;
                DataSet ds = SaleAgentDao.getCardStockList(card_no, status);
                ASPxGridView1.DataSource = ds;
                ASPxGridView1.DataBind();
            }
            catch (Exception ex)
            {
                Response.Write(ex.ToString());
            }

        }

        protected void Button1_Click(object sender, EventArgs e)
        {

        }
    }
}